#ifndef SHOWFINDUPDATE_H_
#define SHOWFINDUPDATE_H_

#include <iomanip>
#include <vector>
#include <iostream>

#include "Category.h"
#include "Product.h"
#include "Cart_item.h"

class ShowfindupdateTMD
{
  public:
	static bool sort_func(Category a, Category b);
	static bool is_cat(int new_cat, vector<Category> cats);
	static bool is_prod(int prod_id, vector<Product> prods);
	static int digits(int a);
	static bool two_digits(double d);
	static double get_price(int prod_id, vector<Product> prods);
	static string get_name(int prod_id, vector<Product> prods);

	static void show(vector<Category> cats, vector<Product> prods);
	static void find(vector<Cart_item> cart_items, vector<Product> prods);
	static void update(vector<Category> &cats, vector<Product> &prods);
};

#endif  //SHOWFINDUPDATE_H_
